Ext.define('cp.view.form.EditAdmin',{
    extend: 'cp.view.form.AdminBase',
    alias: 'widget.editAdmin',

    initComponent: function(){
          
        this.callParent(arguments);
        
        this.action = this.actionUrl;
        
        var input = Ext.create('Ext.form.field.Text', {
                    name: 'idUsuario',
                    hidden: true
                });
        this.add(input);
        
        // Configuro campos como solo lectura.
        var form = this.getForm();
        form.findField('apellido').readOnly = true;
        form.findField('nombre').readOnly = true;
        form.findField('dni').readOnly = true;
        form.findField('fechaNacimiento').readOnly = true;
        form.findField('nombreUsuario').readOnly = true;
        
        form.findField('clave').allowBlank = true;
        form.findField('reClave').allowBlank = true;
        
    }
});